org.eclipse.vtp.desktop.core.actions.util
Class InternalAction

java.lang.Object
  extended by org.eclipse.vtp.desktop.core.actions.util.InternalActionItem
      extended by org.eclipse.vtp.desktop.core.actions.util.InternalAction
All Implemented Interfaces:
IProvisioningActionItem, IProvisioningModelAction

public class InternalAction
extends InternalActionItem
implements IProvisioningModelAction

This is a facade class that wraps an IProvisioningModelAction. It is responsible for locating the implementation of the action and loading it from the appropriate bundle class loader. Once the class has been loaded, the call to performAction() becomes a straight pass through.

Version:
2.0
Author:
Trip Gilman

Field Summary
 
Fields inherited from class org.eclipse.vtp.desktop.core.actions.util.InternalActionItem
pluginNameSpace
 
Constructor Summary
InternalAction(java.lang.String containerId, java.lang.String name, java.lang.String actionClassString)
          Creates a new InternalAction with the given container id, name, and fully qualified name of the implementing action class.
 
Method Summary
 void performAction(IProvisioningModelSelection selection)
           
 
Methods inherited from class org.eclipse.vtp.desktop.core.actions.util.InternalActionItem
getAvailability, getContainerId, getCurrentSelection, getName, getToolTip, processSelectionChange, setFilterClass, setName, setPluginNameSpace, setTargetClass, setToolTip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.vtp.desktop.core.actions.util.IProvisioningActionItem
getName, getToolTip
 

Constructor Detail

InternalAction

public InternalAction(java.lang.String containerId,
                      java.lang.String name,
                      java.lang.String actionClassString)
Creates a new InternalAction with the given container id, name, and fully qualified name of the implementing action class.

Parameters:
containerId - The section name this action will be displayed under
name - The name to display for this action
actionClassString - Fully qualified class name of the implementing action
Throws:
java.lang.IllegalArgumentException - If the class name is null or an empty string
Method Detail

performAction

public void performAction(IProvisioningModelSelection selection)
Specified by:
performAction in interface IProvisioningModelAction